<%--
  Created by IntelliJ IDEA.
  User: 15890741124
  Date: 2022/8/9
  Time: 14:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../common.jsp" %>
<html>
<head>
    <title>详细信息</title>
</head>
<body>

<%--表格--%>
<table id="demo" lay-filter="test"></table>

</body>
<script>

    layui.use(['table'], function () {
        var table = layui.table;

        table.render({
            elem: '#demo'
            , height: 550
            , url: '${pageContext.request.contextPath}/log/queryAll.do'
            , dataType: 'json'
            , page: true //开启分页
            // ,toolbar:'default'
            , limits: [5, 10, 15, 20, 25, 30, 100, 200]//将每页几个写在这里，不想默认10个每页
            , autoSort: true//关闭自动排序
            , cols: [[
                {checkbox: 'checkbox', fixed: 'left'}//左侧复选框
                , {field: 'id', title: '日志编号', width: 100, sort: true, fixed: 'left'}
                , {field: 'loginName', title: '登录名', width: 100}
                , {field: 'userName', title: '用户名', width: 100, sort: true}
                , {field: 'ip', title: 'IP地址', width: 150, sort: true}
                , {field: 'className', title: '类名', width: 200, sort: true}
                , {field: 'methodName', title: '方法名', width: 200, sort: true}
                , {field: 'params', title: '参数', width: 200, sort: true}
                , {field: 'createTime', title: '创建时间', width: 200, sort: true}
            ]]
        });


    });

</script>
</html>
